package fr.pud.client.controller.routes;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import fr.pud.client.i18n.LanguagesConstants;
import fr.pud.client.images.ImagesDatabase;
import fr.pud.client.view.FrameToHideOrDisplayRoute;

/**
 * Apr 15, 2012 - Projet_Ose.
 * @author Simon Devineau, Adrien Hierry, Leopold Houdin, Pierre Reliquet
 *         Ecole des Mines de Nantes
 *         OpenFrameHideOrDisplayRoute.java
 *         Abstract action to open the frame which allows to the user to
 *         display/hide a route.
 */
public class OpenFrameHideOrDisplayRoute extends AbstractAction {
    private static final long serialVersionUID = -8655667384261734956L;

    public OpenFrameHideOrDisplayRoute() {
        this.putValue(NAME, LanguagesConstants.LANGUAGE
                .getString(LanguagesConstants.DISPLAY_HIDE_A_ROUTE));
        this.putValue(SMALL_ICON, ImagesDatabase.BRUSH);
    }

    @Override
    public void actionPerformed(ActionEvent aE) {
        new FrameToHideOrDisplayRoute();
    }
}
